<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
	include('user_type/system.php');
	include('access/login_functions.php');
?>

<head>
		<meta name="keywords" content="KEYWORDS HERE!!!!">
		<meta name="description" content="Descrition Here!!!">
		<title>Register</title>
	<link rel="stylesheet" type="text/css" href="style_1.css">
	<script type="text/javascript" src="js/formValidate.js"></script>
</head>
<body>


<div class="above_body"> <!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">
	<div><a name="top" href="home.php" class="logo-image"><img src="images\QUESTwtrl2.png"  title=""></a></div>
	<div id="toplinks" class="toplinks">
		
			<ul class="nouser">
			
				<?php if (!isset($_SESSION['user'])) echo "<li><a href=\"register.php\" rel=\"nofollow\">Register</a></li>"; ?>
			
				<li>			
							<form id="navbar_loginform" action="access/login.php" method="post" >
					<input type="hidden" name="currentPage" value="<?php echo System::curPageName(); ?>" />
						<fieldset id="logindetails" class="logindetails">
							<div>
								<div>

						<?php // check if user is logged in
							if(isset($_SESSION['user']))
							{	$user = $_SESSION['user'];
								$_SESSION['curPage'] = System::curPageName(); 
								// if so, display username with tools
								echo "<div style=\"font-size: 16px; font-weight: bold;\">";
								echo "Welcome, $user <br />";
								echo "<a href=\"access/logout.php\">Log Out</a>";
								echo "<a href=\"userTools.php\">myTools</a>";
								echo "<a href=\"userInfo.php\">myProfile</a>";
								
								echo "</div>";
							}
							else
							{	// otherwise, display login form
								echo "<input type=\"text\" class=\"textbox default-value\" name=\"user\" id=\"navbar_username\" size=\"10\" tabindex=\"101\" value=\"Username\"> ";
								echo "<input type=\"password\" class=\"textbox default-value\" tabindex=\"102\" name=\"pass\" id=\"navbar_password_hint\" size=\"10\" value=\"Password\" style=\"display: inline; \"> ";
								echo "<input type=\"submit\" class=\"loginbutton\" tabindex=\"104\" value=\"Log in\" title=\"Enter your username and password in the boxes provided to login.\" accesskey=\"s\">";
							}
						?>
				</li>
			</ul>
		
	</div>
	<div class="ad_global_header">
		 
		 
	</div>
	<hr>
</div> 
<div id="navbar" class="navbar">

	<ul id="navtabs" class="navtabs floatcontainer">					
	</ul>
	
	<div id="globalsearch" class="globalsearch">
		<form action="/search.php?do=process" method="post" id="navbar_search" class="navbar_search">
			
			<input type="hidden" name="securitytoken" value="guest">
			<input type="hidden" name="do" value="process">
			<span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"></span></span>
			<span class="buttoncontainer"><span><input type="image" class="searchbutton" src="images\search.png" name="submit" onclick="document.getElementById(&#39;navbar_search&#39;).submit;" tabindex="100"></span></span>
		</form>
		
	</div>
	
</div>
</div><!-- closing div for above_body -->

<form id="registerform" action="register_summit.php" onsubmit="return validateForm();" name="register" method="post" class="vbform block">

	<h2 class="blockhead">Registration Form</h2>
	<div class="blockbody formcontrols">

		<h3 class="blocksubhead">Required Information</h3>

		<div class="section">
			<div class="blockrow">
					<ul class="group">
						<li>
							<label for="fName">First Name:</label>
							<input type="text" class="textbox" name="fName" id="fName" maxlength="50" value="" dir="ltr" tabindex="1">
						</li>
						<li>
							<label for="lName">Last Name:</label>
							<input type="text" class="textbox" name="lName" id="lName" maxlength="50" value="" dir="ltr" tabindex="1">
						</li>
					</ul>
				</div>
			<div class="blockrow">
				<ul class="group">
					<li>
						<label for="username">Username:</label>
						<input type="text" class="textbox" id="username"  name="username" maxlength="25" value="" tabindex="1" autocomplete="on">
					</li>
				</ul>
				<p class="description">Please enter the name by which you would like to log-in and be known on this site.</p>
			</div>

			<div class="blockrow">
				<ul class="group">
					<li>
						<label for="password">Password:</label>
						<input type="password" class="textbox" name="password" id="password" maxlength="50" value="" tabindex="1">
					</li>
					<li>
						<label for="passwordconfirm">Confirm Password:</label>
						<input type="password" class="textbox" name="passwordconfirm" id="passwordconfirm" maxlength="50" value="" tabindex="1">
					</li>
				</ul>
				<p class="description">Please enter a password for your user account. Note that passwords are case-sensitive.</p>
			</div>

			<div class="blockrow">
				<ul class="group">
					<li>
						<label for="Email">Email:</label>
						<input type="text" class="textbox" name="Email" id="Email" maxlength="50" value="" dir="ltr" tabindex="1">
					</li>
				</ul>
				<p class="description">Please enter a valid email address for yourself.</p>
			</div>

		</div>
			<h3 class="blocksubhead">Additional Required Information (optional)</h3>
	<div class="section">
				
				
	<script type="text/javascript">
	<!--
	function clear_birthday()
	{
		fetch_object('bd_month').selectedIndex = 0;
		fetch_object('bd_day').selectedIndex = 0;
		fetch_object('bd_year').value = '';
	}
	//-->
	</script>
	<div class="blockrow">
		
		<label for="bd_month">Date of Birth:</label>
		<div class="rightcol">
			<ul class="multifield group floatcontainer">
				<li>
					<label for="bd_month">Month</label>
					<select name="bd_month" id="bd_month" tabindex="1">
						<option value="-1"></option>
						<option value="01">January</option>
						<option value="02">February</option>
						<option value="03">March</option>
						<option value="04">April</option>
						<option value="05">May</option>
						<option value="06">June</option>
						<option value="07">July</option>
						<option value="08">August</option>
						<option value="09">September</option>
						<option value="10">Octuber</option>
						<option value="11">November</option>
						<option value="12">December</option>
					</select>
	                        </li>
				<li>
					<label for="bd_day">Day</label>
					<select name="bd_day" id="bd_day" tabindex="1">
						<option value="-1"></option>
						<option value="01">1</option>
						<option value="02">2</option>
						<option value="03">3</option>
						<option value="04">4</option>
						<option value="05">5</option>
						<option value="06">6</option>
						<option value="07">7</option>
						<option value="08">8</option>
						<option value="09">9</option>
						<option value="10">10</option>
						<option value="11">11</option>
						<option value="12">12</option>
						<option value="13">13</option>
						<option value="14">14</option>
						<option value="15">15</option>
						<option value="16">16</option>
						<option value="17">17</option>
						<option value="18">18</option>
						<option value="19">19</option>
						<option value="20">20</option>
						<option value="21">21</option>
						<option value="22">22</option>
						<option value="23">23</option>
						<option value="24">24</option>
						<option value="25">25</option>
						<option value="26">26</option>
						<option value="27">27</option>
						<option value="28">28</option>
						<option value="29">29</option>
						<option value="30">30</option>
						<option value="31">31</option>
					</select>
				</li>
				<li>
					<label for="bd_year">Year</label>
					<input type="text" class="textbox numeric" name="bd_year" size="4" maxlength="4" id="bd_year" tabindex="1">
				</li>
			</ul>
			<input type="hidden" name="oldbirthday" value="">
		</div>
		<p class="description">Only the administrator will have access to your date of birth.</p>
			<div class="blockrow">
				<ul class="group">
					<li>
						<label for="sex">Gender:</label>
						<input type="radio" name="sex" id="sex" value="M">Male
						<input type="radio" name="sex" id="sex" value="F">Female					
					</li>
				</ul>
			</div>
	</div>
	
		
	
	</div>


	<h2 class="blockhead">Search Engine Rules</h2>
	<div class="blockbody formcontrols">
		<div class="section">
			<div class="blockrow">
				<p class="label">In order to proceed, you must agree with the following rules:</p>
				<div id="forumrules" class="restore">
						
					<p><strong>Rules</strong></p>

					<p>Registration to this search engine is free! We do insist that you abide by the rules and policies detailed
					below. If you agree to the terms, please check the 'I agree' checkbox and press the 'Complete Registration' button below.
					If you would like to cancel the registration, click <a href="">here</a>
					to return to the forums index.</p>
					<p>Registration to this search engine is free! We do insist that you abide by the rules and policies detailed
					below. If you agree to the terms, please check the 'I agree' checkbox and press the 'Complete Registration' button below.
					If you would like to cancel the registration, click <a href="">here</a>
					to return to the forums index.</p>
					<p>Registration to this search engine is free! We do insist that you abide by the rules and policies detailed
					below. If you agree to the terms, please check the 'I agree' checkbox and press the 'Complete Registration' button below.
					If you would like to cancel the registration, click <a href="">here</a>
					to return to the forums index.</p>
					<p>Registration to this search engine is free! We do insist that you abide by the rules and policies detailed
					below. If you agree to the terms, please check the 'I agree' checkbox and press the 'Complete Registration' button below.
					If you would like to cancel the registration, click <a href="">here</a>
					to return to the forums index.</p>
					
				</div>
			</div>
			<div class="blockrow singlecheck">
				<label for="cb_rules_agree" class="full"><input type="checkbox" name="agree" id="cb_rules_agree" tabindex="1" value="1"> <strong> I have read, and agree to abide by this program's rules.</strong></label>
			</div>
		</div>
	</div>

	<div class="blockfoot actionbuttons">
		<div class="group">
			<input type="hidden" name="s" value="">
			<input type="hidden" name="securitytoken" value="guest">
			<input type="hidden" name="do" value="addmember">
			<input type="hidden" name="url" value="">
			<input type="hidden" name="password_md5">
			<input type="hidden" name="passwordconfirm_md5">
			
			
			<input type="submit" class="button" value="Complete Registration" tabindex="1" accesskey="s">
			<input type="reset" class="button" name="Reset" tabindex="1" value="Reset Fields">
		</div>
	</div>

</form>

 

<div id="footer" class="floatcontainer footer">

	<form action="http://www.elcorito.com/forum.php" method="get" id="footer_select" class="footer_select">

			
		
		
		
			<select name="langid" onchange="switch_id(this, &#39;lang&#39;)">
				<optgroup label="Select Language">
					<option value="1" class="">-- English (US)</option> 
				</optgroup>
			</select>
		
	</form>


<div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; height: 0px; width: 0px; "></div></div>
 

</div> 


 </body></html>